import {type} from './../action'
const initialState = {
    token: ''
}

export default (state = initialState, action) => {
    switch (action.type) {
        case type.GET_TOKEN:
            return {
                ...state,
                token:action.token
            }
        default:
            return {...state}
    }
} 